﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

/// <summary>
/// 飞行物组件
/// </summary>
public class FlyObjectComponent : ECSCompoentBase
{
    /// <summary>
    /// 创建者id
    /// </summary>
    public int CreaterID;
    /// <summary>
    /// 伤害
    /// </summary>
    public int Damage;
    /// <summary>
    /// 飞行物数据路径
    /// </summary>
    public string flyObjectID;
    /// <summary>
    /// 飞行数据
    /// </summary>
    private FlyDataGendrate m_flyData;

    public FlyDataGendrate FlyData
    {
        get
        {
            if (m_flyData.Equals(null))
            {
                m_flyData = DataGenerateManager<FlyDataGendrate>.GetData(flyObjectID);
            }

            return m_flyData;
        }
        set { m_flyData = value; }
    }
}

